$(function () {
    visit();
});

//
function visit() {
    let data = myAjax("/back/manage", {}, "get");
    console.log(data);
    if (data == 400) {
        window.open("/login.html");
    }
    $("#spanUsername").html(data.username);

}

function exitCanyin() {
    myAjax("/back/exitCanyin", {}, "get");
    window.open("/login.html");
}